<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>




    <script>

        function send(){
            var xhr = new XMLHttpRequest();
            xhr.open("get","http://127.0.0.1:3000/");
            xhr.onreadystatechange = function(){
                if(this.status==200 && this.readyState==4){
                    var json = JSON.parse(this.responseText);
                    console.log(json.username+"=="+json.password);
                }
            };
            xhr.send();
        };

        send();

    </script>

</body>
</html>